home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
music
/
188
/
c
/
batch.doc
< prev
next >
Wrap
Text File
|
1987-10-14
|
2KB
|
43 lines
This document was generated from file batch.FOR
on 20-NOV-85 at 1: 9:36
________________________________________________________________________
________________________________________________________________________
PROGRAM BATCH
C L. R. Fortney 10/10/87
C This programs reads the command line and writes the parameters
C to a file BATCH.DAT. Parameters must be separated by commas.
C The program is useful for providing a text file to be read by
C a redirected input to programs like F77 and F77L. It does not
C work with STwriter.
C
C The following are examples of batch files for MSDOS and Gulam
C For MSDOS from Michtron: This file is labeled FLG.BAT and generates
C an F77 compile, link, and execute (go) operation. Within MSDOS it
C is invoked by typing: FLG mysource mylib
C The program generates an intermediate scratch file BATCH.DAT
C
C BATCH %1,%2
C D:\F77 <BATCH.DAT
C BATCH L %2,L SYSTEM,L F77.RL,F %1,g,q,y
C D:\F77L <BATCH.DAT
C DEL BATCH.DAT
C %1
C
C For the Gulam shell the same result is obtained with:
C
C batch $1,$2
C f77 <batch.dat
C batch l $2,l system,l f77.rl,f $1,g,q,y
C f77l <batch.dat
C rm batch.dat #(or perhaps Rm batch.dat)
C $1
C
________________________________________________________________________
L. R. Fortney
Physics Dept
Duke University
Durham, NC 27706
Genie mail address DUKEL